/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Vista.Herramientas;

import javax.swing.JFrame;
import javax.swing.JOptionPane;

/**
 *
 * @author Luciano
 */
public class DialogoConfirmacion {

    public DialogoConfirmacion() {
    }

    public boolean confirmar(String pregunta, String titulo) {
        return JOptionPane.showConfirmDialog(null, pregunta, titulo, JOptionPane.OK_CANCEL_OPTION) == JOptionPane.OK_OPTION;
    }
}